
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGAttachment.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_Attachment_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_Attachment()
{
    scope* osg_Attachment_scope = new scope(
    class_< osg::Attachment, bases< osg::FieldContainer > , boost::noncopyable, osg::AttachmentRefPtr >("Attachment", no_init)
//        .def_readonly("InternalFieldMask", &osg::Attachment::InternalFieldMask)
//        .def_readonly("ParentsFieldMask", &osg::Attachment::ParentsFieldMask)
        .def("getType", (osg::FieldContainerType& (osg::Attachment::*)() )&osg::Attachment::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::Attachment::*)() const)&osg::Attachment::getType, return_internal_reference< 1 >())
        .def("getClassType", &osg::Attachment::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::Attachment::getClassTypeId)
        .def("create", &osg::Attachment::create)
        .def("createEmpty", &osg::Attachment::createEmpty)
        .def("shallowCopy", &osg::Attachment::shallowCopy)
        .def("getContainerSize", &osg::Attachment::getContainerSize)
//        .def("getParents", (osg::MFFieldContainerPtr& (osg::Attachment::*)() )&osg::Attachment::getParents, return_value_policy< copy_const_reference >())
        .def("getParents", (const osg::MFFieldContainerPtr& (osg::Attachment::*)() const)&osg::Attachment::getParents, return_value_policy< copy_const_reference >())
        .def("addParent", &osg::Attachment::addParent)
        .def("subParent", &osg::Attachment::subParent)
        .def("findParent", &osg::Attachment::findParent)
//        .def("getInternal", (osg::SFBool& (osg::Attachment::*)() )&osg::Attachment::getInternal, return_value_policy< copy_const_reference >())
        .def("getInternal", (const osg::SFBool& (osg::Attachment::*)() const)&osg::Attachment::getInternal, return_value_policy< copy_const_reference >())
        .def("setInternal", &osg::Attachment::setInternal)
        .def("getBinSize", &osg::Attachment::getBinSize)
        .def("copyToBin", &osg::Attachment::copyToBin)
        .def("copyFromBin", &osg::Attachment::copyFromBin)
        .def("dump", &osg::Attachment::dump, osg_Attachment_dump_overloads_0_2())
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::Attachment::NextFieldId;
    scope().attr("ParentsFieldId") = (int)osg::Attachment::ParentsFieldId;
    scope().attr("InternalFieldId") = (int)osg::Attachment::InternalFieldId;

    delete osg_Attachment_scope;


    register_ptr_to_python<osg::AttachmentPtr>();
    implicitly_convertible<osg::AttachmentRefPtr, osg::AttachmentPtr>();
    implicitly_convertible<osg::AttachmentPtr, osg::FieldContainerPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::AttachmentPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::AttachmentPtr>);
}

